import request from "../request.js"

//banner轮播
function bannerAds(data){
	return request({
		url:"/lejuClient/home/bannerAds",
		data
	})
}

//分类列表
function categorys(data){
	return request({
		url:"/lejuClient/home/categorys/1308336521604599809",
		data
	})
}

//限时活动列表
function recommendList(data){
	return request({
		url:"/lejuClient/home/recommendList",
		data
	})
	
}

//热门推荐
function hotList(data){
	return request({
		url:"/lejuClient/home/hotList",
		data
	})
}

//新品推荐
function lejuLatestProducts(data){
	return request({
		url:"/lejuClient/home/lejuLatestProducts",
		data
	})
}

//猜你喜欢
function saleMostProducts(data){
	return request({
		url:"/lejuClient/home/saleMostProducts",
		data
	})
}

//商品详情数据
function productDetail(id,data){
	return request({
		url:`/lejuClient/product/productDetail/${id}`,
		data
	})
}

//添加到购物车
function addCart(data){
	return request({
		url:`/lejuClient/cart/addCart`,
		data,
		method:"POST"
	})
}
export {
	bannerAds,categorys,recommendList,hotList,lejuLatestProducts,saleMostProducts,
	productDetail,addCart
}